package com.humble.humbleojjudgeservice.judge.strategy;/*
  humble keep gonging
*/


import com.humble.humbleojjudgeservice.judge.strategy.impl.DefaultJudgeStrategy;
import com.humble.humbleojjudgeservice.judge.strategy.impl.PythonJudgeStrategy;

public class JudgeStrategyFactory {
    private JudgeStrategyFactory() {}
    static class DefaultStrage{
        static JudgeStrategy defaultJudgeStrategy = new DefaultJudgeStrategy();
    }
    static class PythonStrage{
        static JudgeStrategy pythonJudgeStrategy = new PythonJudgeStrategy();
    }
    public static JudgeStrategy getInstance(String type) {
        switch(type){
            case "python":
                return PythonStrage.pythonJudgeStrategy;
            default:
                return DefaultStrage.defaultJudgeStrategy;
        }
    }
}
